package com.swf.common.main;

import java.io.*;

import com.swf.common.base.*;
import com.swf.common.filter.*;
import com.swf.common.utils.*;

public class CopyDir {
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public static void main(String[] args) throws IOException {
		LoggerManager.init();
		//FwsFileUtils.deleteDir(FwsConstants.PROJECT_PATH+"\\test");
		//FwsFileUtils.makeDir(FwsConstants.PROJECT_PATH+"\\test");
		//File srcDir = new File(FwsConstants.PROJECT_PATH ,"src");
		//File destDir = new File(FwsConstants.PROJECT_PATH,"test");
		String srcDir = FwsConstants.PROJECT_PATH+"\\src";
		String destDir = FwsConstants.PROJECT_PATH+"\\test";
		FwsFileUtils.copyDir(srcDir, destDir,0,new FwsNameFilter(){

			@Override
			public boolean exclude(String name) {
				if (".svn".equalsIgnoreCase(name)||name.endsWith(".java")){
					return true;
				}
				return false;
			}
			
		});
	}
	
}
